home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
query_actions
< prev
next >
Wrap
Text File
|
2001-04-06
|
1KB
|
32 lines
SYNOPSIS
mixed *query_actions(object ob, mixed mask_or_verb)
DESCRIPTION
query_actions takes either an object or a filename as first
argument and a bitmask (int) or string as a second argument.
If the second argument is a string, query_actions() will return
an array containing information (see below) on the verb or
zero if the living object "ob" cannot use the verb. If the
second argument is a bitmask, query_actions() will return a
flat array containing information on all verbs added to ob.
The second argument is optional (default is the bitmask 1).
1: the verb
2: type
4: short_verb
8: object
16: function
"type" is one of the values defined in <sent.h> (/sys/sent.h)
(which is provided with the parser source).
SENT_PLAIN added with add_action (fun, cmd);
SENT_SHORT_VERB added with add_action (fun, cmd, 1);
SENT_NO_SPACE added with add_action (fun); add_xverb (cmd);
SENT_NO_VERB just an add_action (fun); without a verb
SENT_MARKER internal, won't be in the returned array
negative value: The verb given by the player has to match only
the leading -<value> characters of the action's verb.
SEE ALSO
add_action(E), init(A)